package com.burgess.net.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Feign-service
 */
@RestController
@RequestMapping("/feign-service")
public class FeignServiceController {

    @RequestMapping(value = "/instance/{serviceId}", method = RequestMethod.GET)
    public Instance getInstanceServiceById(@PathVariable("serviceId") String serviceId ){
        return new Instance(serviceId);
    }

}
